package com.refusea.train.controller

import com.refusea.train.domain.entity.User
import com.refusea.train.domain.helper.TeacherHelper
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestBody
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

/**
 * @author Zhang Yan 2024/4/2
 **/
@RestController
@RequestMapping("/api/private/teacher")
class TeacherController(private val teacherHelper: TeacherHelper) {

    @GetMapping("/list")
    fun list(): List<User> {
        return teacherHelper.list()
    }

    @PostMapping("/save")
    fun save(@RequestBody user: User) {

    }

    @GetMapping("/delete")
    fun delete(id: Int) {

    }

}
